package com.itheima.CharStream;


import java.util.Arrays;

public class CharStreamDemo {
    public static void main(String[] args) {
        String s = "黑马程序员";
        byte[] bys = s.getBytes();
        System.out.println(Arrays.toString(bys));

   //     byte[] gbks = s.getBytes("GBK");


        byte[]bys2={-23, -69, -111, -23, -87, -84, -25, -88, -117, -27, -70, -113, -27, -111, -104};
        String s1 = new String(bys2);
        System.out.println(s1);

    }
}
